//rem布局
function recalc() {
	var n = document.documentElement.clientWidth;
	n && (document.documentElement.style.fontSize = n / 640 * 40 + "px")
}

function initRecalc() {
	recalc();
	var n = "osrientationchange" in window ? "orientationchange" : "resize";
	document.addEventListener && (window.addEventListener(n, recalc, !1), document.addEventListener("DOMContentLoaded", recalc, !1))
}
initRecalc();